package classPractice;

public class PracticeTest {
    public static void main(String[] args) {
        Practice2 obj = new Practice2(123,"闫坤");
        Practice2 obj2 = new Practice2(456,"kunzi");

        System.out.println("equals的结果是："+obj.equals(obj2));

        int s1 = obj.hashCode();
        int s2  = obj.hashCode();
        System.out.println("s1"+s1+"s2"+s2);

        System.out.println("这个是我重写的toString"+obj.toString());
    }
}
